<?php
session_start(); 
if(!isset($_SESSION['userName'])){
header( 'location:../../index.php' ); 
}
	include("../../conf/connect.php");
	$serial=$_GET['serial'];
	$hid = $_GET['hid']; 
	$user_id =$_SESSION['user_id'];
	$bid = $_GET['bid'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="../../style.css" media="screen" />
	<link rel="shortcut icon" href="../images/favicon.ico" />
</head>
<body class="iub_back">
<?php
		if($bid ==6)
			$sql = "SELECT * FROM household_economic WHERE  hid='$hid'" ;
			$result = mysql_query($sql);
			while($row = mysql_fetch_array($result)){
?>
<?php if($serial=='q70'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH01A: Death:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh01_a">
							<option <?php if($row['heh01_a']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh01_a']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q71'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH01B: Illness:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh01_b">
							<option <?php if($row['heh01_b']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh01_b']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q72'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH01C: Crop Loss:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh01_c">
							<option <?php if($row['heh01_c']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh01_c']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q73'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH01D: Natuarl Disaster:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh01_d">
							<option <?php if($row['heh01_d']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh01_d']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q74'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH01E: Loss of job:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh01_e">
							<option <?php if($row['heh01_e']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh01_e']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q75'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH01F: Low crop price:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh01_f">
							<option <?php if($row['heh01_f']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh01_f']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q76'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH01G: Business Loss:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh01_g">
							<option <?php if($row['heh01_g']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh01_g']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q77'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH02A: Death:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh02_a">
							<option <?php if($row['heh02_a']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh02_a']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q78'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH02B: Illness:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh02_b">
							<option <?php if($row['heh02_b']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh02_b']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q79'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH02C: Crop Loss:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh02_c">
							<option <?php if($row['heh02_c']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh02_c']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q80'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH02D: Natuarl Disaster:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh02_d">
							<option <?php if($row['heh02_d']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh02_d']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q81'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH02E: Loss of job:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh02_e">
							<option <?php if($row['heh02_e']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh02_e']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q82'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH02F: Low crop price:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh02_f">
							<option <?php if($row['heh02_f']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh02_f']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q83'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH02G: Business Loss:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<select name="heh02_g">
							<option <?php if($row['heh02_g']==1){?> selected="selected"<?php }?> value="1">Yes</option>
							<option <?php if($row['heh02_g']==3){?> selected="selected"<?php }?> value="3">No</option>
						</select>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q84'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH03A: Death:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<input type="text" value="<?php echo $row['heh03_a'];?>" name="heh03_a"/>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q85'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH03B: Illness:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<input type="text" value="<?php echo $row['heh03_b'];?>" name="heh03_b"/>
					</td>					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q86'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH03C: Crop Loss:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<input type="text" value="<?php echo $row['heh03_c'];?>" name="heh03_c"/>
					</td>
					
			</tr>			
		</table>
	</form>
<?php }?>
<?php if($serial=='q87'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH03D: Natuarl Disaster:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<input type="text" value="<?php echo $row['heh03_d'];?>" name="heh03_d"/>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q88'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH03E: Loss of job:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<input type="text" value="<?php echo $row['heh03_d'];?>" name="heh03_d"/>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q89'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH03F: Low crop price:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
						<input type="text" value="<?php echo $row['heh03_e'];?>" name="heh03_e"/>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>
<?php if($serial=='q90'){?>
	<form method="post" action="update_operation.php?qus=<?php echo $serial;?>&amp;bid=<?php echo $bid;?>">	
		<table align="center" class="table_border">
			<tr align="left">
					<td align="left">HEH03G: Business Loss:<input type="hidden" name="hid" value="<?php echo $hid;?>" /></td>
			</tr>
			<tr align="left">
					<td align="left">
							<input type="text" value="<?php echo $row['heh03_f'];?>" name="heh03_f"/>
					</td>
					
			</tr>
			<tr>
					<td  align="right"><input type="submit" value="Update"  class="input-box"/></td>
			</tr>
			
		</table>
	</form>
<?php }?>

<?php }?>	

</body>
</html>